package itdep.common.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * @author Ivan Khalopik
 * @version $Revision: 4 $ $Date: 2010-06-10 13:13:16 +0000 (Thu, 10 Jun 2010) $
 */
public class EntityFilterImpl<PK extends Serializable> implements EntityFilter<PK> {
	private Boolean existing;
	private String queryString;
	private final List<PK> includeKeys = new ArrayList<PK>();
	private final List<PK> excludeKeys = new ArrayList<PK>();

	public Boolean isExisting() {
		return existing;
	}

	public void setExisting(final Boolean existing) {
		this.existing = existing;
	}

	public Collection<PK> getIncludeKeys() {
		return includeKeys;
	}

	public void setIncludeKeys(final Collection<PK> keys) {
		includeKeys.addAll(keys);
	}

	public Collection<PK> getExcludeKeys() {
		return excludeKeys;
	}

	public void setExcludeKeys(final Collection<PK> keys) {
		excludeKeys.addAll(keys);
	}

	public String getQueryString() {
		return queryString;
	}

	public void setQueryString(final String queryString) {
		this.queryString = queryString;
	}
}
